<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
    <meta HTTP-EQUIV="Expires" CONTENT="0">
    <title>后台管理系统</title>
    <link rel="stylesheet" type="text/css" href="/admin/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/admin/css/style.css">
    <link rel="stylesheet" type="text/css" href="/admin/css/font-awesome.min.css">
    <link rel="apple-touch-icon-precomposed" href="/admin/images/icon/icon.png">
    <link rel="shortcut icon" href="/admin/images/icon/favicon.ico">
    <script src="/admin/js/jquery-2.1.4.min.js"></script>
</head>

<body style="margin: 0px;padding: 0px;">
<h1 class="page-header" style="margin-top: 5px;">信息总览</h1>
<div class="row placeholders" style="background-color:white;padding-top: 15px">
    <div class="col-xs-6 col-sm-3 placeholder">
        <h4>文章</h4>
        <span class="text-muted">0 条</span></div>
    <div class="col-xs-6 col-sm-3 placeholder">
        <h4>留言</h4>
        <span class="text-muted">0 条</span></div>

</div>
<h1 class="page-header">状态</h1>
<div class="table-responsive">
    <table class="table table-striped table-hover">
        <tbody>
        <tr>
            <td>登录者: <span>${(userinfo.userName)!}</span></td>
        </tr>

        </tbody>
    </table>
</div>
<@shiro.hasAnyRoles name="admin,superAdmin">
<h1 class="page-header">系统信息</h1>
<div class="table-responsive">
    <table class="table table-striped table-hover">
        <thead>
        <tr></tr>
        </thead>
        <tbody>
        <tr>
            <td>管理员个数:</td>
            <td>${(userCount)!}人</td>
        <#--<td>服务器软件:</td>-->
        <#--<td>Apache Tomcat8.0</td>-->
        </tr>
        <#--<tr>-->
        <#--<td>浏览器:</td>-->
        <#--<td>Chrome47</td>-->
        <#--<td>JDK版本:</td>-->
        <#--<td>1.8</td>-->
        <#--</tr>-->
        <tr>
            <td>登录者IP:</td>
            <td>${(ip)!}</td>
        <#--<td>MYSQL版本:</td>-->
        <#--<td>5.5.40</td>-->
        </tr>
        <tr>
        <#--<td>程序编码:</td>-->
        <#--<td>UTF-8</td>-->
            <td>登录时间:</td>
            <td>${(loginTime)!}</td>
        </tr>
        <tr>
            <td>当前在线人数:</td>
            <td>${(onlineCount)!}</td>
        </tr>
        <tr>
            <td>历史在线总人数:</td>
            <td>${(historyCount)!}</td>
        </tr>
        <tr>
            <td>历史最大在线人数:</td>
            <td>${(maxOnlineCount)!}</td>
        </tr>
        <tr>
            <td>历史最大在线发生时间:</td>
            <td>${(maxOnlineCountDate)!}</td>
        </tr>
        <tr>
            <td>系统启动时间:</td>
            <td>${(serverStartDate)!}</td>
        </tr>
        </tbody>
        <tfoot>
        <tr></tr>
        </tfoot>
    </table>
</div>
</@shiro.hasAnyRoles>
<@shiro.hasRole name="superAdmin">
<h1 class="page-header">当前在线人列表</h1>
<div class="table-responsive">
    <table class="table table-striped table-hover">
        <thead>
        <tr>
            <td>账号</td>
            <td>姓名</td>
            <td>IP</td>
        </tr>
        </thead>
        <tbody>
              <#list (userInfoList)! as user>
              <tr>
                  <td>${(user.userAccount)!}</td>
                  <td>${(user.userName)!}</td>
                  <td>${(user.ip)!}</td>
              </tr>
              </#list>
        </tbody>
        <tfoot>
        <tr></tr>
        </tfoot>
    </table>
</div>
</@shiro.hasRole>

</body>
</html>
